// 测试数据
const md5 = require('md5');

// 测试 用户数据
exports.user = [
  {
    _id: '60ed63a63999a346a837ed0c',
    deptId: ['60ed174352447a4d44ac9939'],
    state: 1,
    role: 0,
    roleList: ['60ed63a63999a346a837ed0c'],
    userId: 1000001,
    userName: 'admin',
    userPwd: 'e10adc3949ba59abbe56e057f20f883e',
    userEmail: '2336739721@qq.com',
  },
  {
    _id: '60ed61f0bd33bb3be4c0add2',
    deptId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993a'],
    state: 1,
    role: 1,
    roleList: ['60ed63a63999a346a837ed0d'],
    userId: 1000004,
    userPwd: 'e10adc3949ba59abbe56e057f20f883e',
    userEmail: 'test01@qq.com',
    userName: '前端组员01',
    job: null,
    mobile: null,
  },
  {
    _id: '60ed6208bd33bb3be4c0add3',
    deptId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993a'],
    state: 1,
    role: 1,
    roleList: ['60ed63a63999a346a837ed0d'],
    userId: 1000005,
    userPwd: 'e10adc3949ba59abbe56e057f20f883e',
    userEmail: 'test02@qq.com',
    userName: '前端组员02',
    job: null,
    mobile: null,
  },
  {
    _id: '60ed6225bd33bb3be4c0add4',
    deptId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993a'],
    state: 1,
    role: 1,
    roleList: ['60ed63a63999a346a837ed0c'],
    userId: 1000006,
    userPwd: 'e10adc3949ba59abbe56e057f20f883e',
    userEmail: 'test03@qq.com',
    userName: '前端组长',
  },
  {
    _id: '60ed626abd33bb3be4c0add5',
    deptId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993c'],
    state: 1,
    role: 1,
    roleList: ['60ed63a63999a346a837ed0c'],
    userId: 1000007,
    userPwd: 'e10adc3949ba59abbe56e057f20f883e',
    userEmail: 'test05@qq.com',
    userName: '人事部管理',
  },
  {
    _id: '60ed6280bd33bb3be4c0add6',
    deptId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993d'],
    state: 1,
    role: 1,
    roleList: ['60ed63a63999a346a837ed0c'],
    userId: 1000008,
    userPwd: 'e10adc3949ba59abbe56e057f20f883e',
    userEmail: 'test06@qq.com',
    userName: '财务部管理',
  },
];
// 测试 用户id数据
exports.userId = {
  _id: 'userId',
  sequence_value: 1000003,
};
// 测试 部门数据
exports.dept = [
  {
    _id: '60ed174352447a4d44ac9939',
    parentId: [null],
    deptName: 'YL公司',
    userId: '1000001',
    userName: 'admin',
    userEmail: '2336739721@qq.com',
  },
  {
    _id: '60ed174352447a4d44ac993a',
    parentId: ['60ed174352447a4d44ac9939'],
    deptName: '前端部门',
    userId: 1000006,
    userEmail: 'test03@qq.com',
    userName: '前端组长',
  },
  {
    _id: '60ed174352447a4d44ac993b',
    parentId: ['60ed174352447a4d44ac9939'],
    deptName: '测试部门',
    userId: '1000001',
    userName: 'admin',
    userEmail: '2336739721@qq.com',
  },
  {
    _id: '60ed174352447a4d44ac993c',
    parentId: ['60ed174352447a4d44ac9939'],
    deptName: '人事部门',
    userId: 1000007,
    userEmail: 'test05@qq.com',
    userName: '人事部管理',
  },
  {
    _id: '60ed174352447a4d44ac993d',
    parentId: ['60ed174352447a4d44ac9939'],
    deptName: '财务部门',
    userId: 1000008,
    userEmail: 'test06@qq.com',
    userName: '财务部管理',
  },
  {
    _id: '60ed174352447a4d44ac993e',
    parentId: ['60ed174352447a4d44ac9939'],
    deptName: '后端部门',
    userName: 'admin',
    userId: '1000001',
    userEmail: '2336739721@qq.com',
  },
  {
    _id: '60ed174352447a4d44ac993f',
    parentId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993e'],
    deptName: '后端第一小组',
    userName: 'admin',
    userId: '1000001',
    userEmail: '2336739721@qq.com',
  },
  {
    _id: '60ed174352447a4d44ac9940',
    parentId: ['60ed174352447a4d44ac9939', '60ed174352447a4d44ac993e'],
    deptName: '后端第二小组',
    userName: 'admin',
    userId: '1000001',
    userEmail: '2336739721@qq.com',
  },
];
// 测试 菜单数据
exports.menu = [
  {
    _id: '60ed143b3f9fb933801dbdcf',
    parentId: [null],
    menuType: 1,
    menuName: '系统管理',
    menuCode: '',
    path: '/system',
    icon: 'el-icon-setting',
    order: 0,
    component: '',
    menuState: 1,
  },
  {
    _id: '60ed143b3f9fb933801dbdd0',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd3'],
    menuType: 2,
    menuState: 1,
    menuName: '新增',
    menuCode: 'user-add',
  },
  {
    _id: '60ed143b3f9fb933801dbdd1',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd3'],
    menuType: 2,
    menuState: 1,
    menuName: '批量删除',
    menuCode: 'user-patch-delete',
  },
  {
    _id: '60ed143b3f9fb933801dbdd2',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd3'],
    menuType: 2,
    menuState: 1,
    menuName: '查看',
    menuCode: 'user-query',
  },
  {
    _id: '60ed143b3f9fb933801dbdd3',
    parentId: ['60ed143b3f9fb933801dbdcf'],
    menuType: 1,
    menuName: '用户管理',
    menuCode: '',
    path: '/system/user',
    icon: '',
    order: 1,
    component: '/system/User',
    menuState: 1,
  },
  {
    _id: '60ed143b3f9fb933801dbdd4',
    parentId: ['60ed143b3f9fb933801dbdcf'],
    menuType: 1,
    menuState: 1,
    menuName: '菜单管理',
    path: '/system/menu',
    component: '/system/Menu',
  },
  {
    _id: '60ed143b3f9fb933801dbdd5',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd4'],
    menuType: 2,
    menuState: 1,
    menuName: '查看',
    menuCode: 'menu-query',
  },
  {
    _id: '60ed143b3f9fb933801dbdd6',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd4'],
    menuType: 2,
    menuState: 1,
    menuName: '创建',
    menuCode: 'menu-add',
  },
  {
    _id: '60ed143b3f9fb933801dbdd7',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd9'],
    menuType: 2,
    menuState: 1,
    menuName: '查看',
    menuCode: 'role-query',
  },
  {
    _id: '60ed143b3f9fb933801dbdd8',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd9'],
    menuType: 2,
    menuState: 1,
    menuName: '创建',
    menuCode: 'role-add',
  },
  /* 30 */
  {
    _id: '60ed6d59219d18641cb77722',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd9'],
    menuType: 2,
    menuState: 1,
    menuName: '编辑',
    menuCode: 'role-edit',
  },
  {
    _id: '60ed6d71219d18641cb77723',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd9'],
    menuType: 2,
    menuState: 1,
    menuName: '删除',
    menuCode: 'role-delete',
  },
  {
    _id: '60ed143b3f9fb933801dbdd9',
    parentId: ['60ed143b3f9fb933801dbdcf'],
    menuType: 1,
    menuState: 1,
    menuName: '角色管理',
    path: '/system/role',
    component: '/system/Role',
  },
  {
    _id: '60ed143b3f9fb933801dbdda',
    parentId: ['60ed143b3f9fb933801dbdcf'],
    menuType: 1,
    menuState: 1,
    menuName: '部门管理',
    path: '/system/dept',
    component: '/system/Dept',
  },
  {
    _id: '60ed143b3f9fb933801dbddb',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdda'],
    menuType: 2,
    menuState: 1,
    menuName: '查看',
    menuCode: 'dept-query',
  },
  {
    _id: '60ed143b3f9fb933801dbddc',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdda'],
    menuType: 2,
    menuState: 1,
    menuName: '创建',
    menuCode: 'dept-add',
  },
  {
    _id: '60ed143b3f9fb933801dbddd',
    parentId: ['60ed143b3f9fb933801dbde2', '60ed143b3f9fb933801dbddf'],
    menuType: 2,
    menuState: 1,
    menuName: '查看',
    menuCode: 'leave-query',
  },
  {
    _id: '60ed143b3f9fb933801dbdde',
    parentId: ['60ed143b3f9fb933801dbde2', '60ed143b3f9fb933801dbddf'],
    menuType: 2,
    menuState: 1,
    menuName: '申请休假',
    menuCode: 'leave-add',
  },
  {
    _id: '60ed143b3f9fb933801dbddf',
    parentId: ['60ed143b3f9fb933801dbde2'],
    menuType: 1,
    menuState: 1,
    menuName: '休假申请',
    path: '/audit/leave',
    component: '/audit/Leave',
  },
  {
    _id: '60ed143b3f9fb933801dbde0',
    parentId: ['60ed143b3f9fb933801dbde2'],
    menuType: 1,
    menuState: 1,
    menuName: '待我审批',
    path: '/audit/approve',
    component: '/audit/Approve',
  },
  {
    _id: '60ed143b3f9fb933801dbde1',
    parentId: ['60ed143b3f9fb933801dbde2', '60ed143b3f9fb933801dbde0'],
    menuType: 2,
    menuState: 1,
    menuName: '查看',
    menuCode: 'approve-query',
  },
  {
    _id: '60ed143b3f9fb933801dbde2',
    parentId: [null],
    menuType: 1,
    menuState: 1,
    menuName: '审批管理',
    path: '/audit',
    icon: 'el-icon-s-promotion',
  },
  {
    _id: '60ed143b3f9fb933801dbde3',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd3'],
    menuType: 2,
    menuState: 1,
    menuName: '删除',
    menuCode: 'user-delete',
  },
  {
    _id: '60ed143b3f9fb933801dbde4',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd3'],
    menuType: 2,
    menuState: 1,
    menuName: '编辑',
    menuCode: 'user-edit',
  },
  {
    _id: '60ed143b3f9fb933801dbde5',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd4'],
    menuType: 2,
    menuState: 1,
    menuName: '编辑',
    menuCode: 'menu-edit',
  },
  {
    _id: '60ed143b3f9fb933801dbde6',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdd4'],
    menuType: 2,
    menuState: 1,
    menuName: '删除',
    menuCode: 'menu-delete',
  },
  {
    _id: '60ed143b3f9fb933801dbde7',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdda'],
    menuType: 2,
    menuState: 1,
    menuName: '删除',
    menuCode: 'dept-delete',
  },
  {
    _id: '60ed143b3f9fb933801dbde8',
    parentId: ['60ed143b3f9fb933801dbdcf', '60ed143b3f9fb933801dbdda'],
    menuType: 2,
    menuState: 1,
    menuName: '编辑',
    menuCode: 'dept-edit',
  },
  {
    _id: '60ed143b3f9fb933801dbde9',
    parentId: ['60ed143b3f9fb933801dbde2', '60ed143b3f9fb933801dbddf'],
    menuType: 2,
    menuState: 1,
    menuName: '申请作废',
    menuCode: 'leave-delete',
  },
  {
    _id: '60ed143b3f9fb933801dbdea',
    parentId: ['60ed143b3f9fb933801dbde2', '60ed143b3f9fb933801dbde0'],
    menuType: 2,
    menuState: 1,
    menuName: '通过',
    menuCode: 'approve-yes',
  },
  {
    _id: '60ed143b3f9fb933801dbdeb',
    parentId: ['60ed143b3f9fb933801dbde2', '60ed143b3f9fb933801dbde0'],
    menuType: 2,
    menuState: 1,
    menuName: '拒绝',
    menuCode: 'approve-no',
  },
];
// 角色
exports.role = [
  {
    _id: '60ed63a63999a346a837ed0c',
    permissionList: {
      checkedKeys: [
        '60ed143b3f9fb933801dbdd0',
        '60ed143b3f9fb933801dbdd1',
        '60ed143b3f9fb933801dbdd2',
        '60ed143b3f9fb933801dbde3',
        '60ed143b3f9fb933801dbde4',
        '60ed143b3f9fb933801dbdd5',
        '60ed143b3f9fb933801dbdd6',
        '60ed143b3f9fb933801dbde5',
        '60ed143b3f9fb933801dbde6',
        '60ed143b3f9fb933801dbdd7',
        '60ed143b3f9fb933801dbdd8',
        '60ed6d59219d18641cb77722',
        '60ed6d71219d18641cb77723',
        '60ed143b3f9fb933801dbddb',
        '60ed143b3f9fb933801dbddc',
        '60ed143b3f9fb933801dbde7',
        '60ed143b3f9fb933801dbde8',
        '60ed143b3f9fb933801dbddd',
        '60ed143b3f9fb933801dbdde',
        '60ed143b3f9fb933801dbde9',
        '60ed143b3f9fb933801dbde1',
        '60ed143b3f9fb933801dbdea',
        '60ed143b3f9fb933801dbdeb',
      ],
      halfCheckedKeys: [
        '60ed143b3f9fb933801dbdcf',
        '60ed143b3f9fb933801dbdd3',
        '60ed143b3f9fb933801dbdd4',
        '60ed143b3f9fb933801dbdd9',
        '60ed143b3f9fb933801dbdda',
        '60ed143b3f9fb933801dbde2',
        '60ed143b3f9fb933801dbddf',
        '60ed143b3f9fb933801dbde0',
      ],
    },
    remark: '全部权限都有的角色  类似admin',
    roleName: '全量角色',
  },
  {
    _id: '60ed63a63999a346a837ed0d',
    permissionList: {
      checkedKeys: [
        '60ed143b3f9fb933801dbdd2',
        '60ed143b3f9fb933801dbdd5',
        '60ed143b3f9fb933801dbdd7',
        '60ed143b3f9fb933801dbddb',
        '60ed143b3f9fb933801dbddd',
        '60ed143b3f9fb933801dbdde',
        '60ed143b3f9fb933801dbde1',
      ],
      halfCheckedKeys: [
        '60ed143b3f9fb933801dbdcf',
        '60ed143b3f9fb933801dbdd3',
        '60ed143b3f9fb933801dbdd4',
        '60ed143b3f9fb933801dbdd9',
        '60ed143b3f9fb933801dbdda',
        '60ed143b3f9fb933801dbde2',
        '60ed143b3f9fb933801dbddf',
        '60ed143b3f9fb933801dbde0',
      ],
    },
    remark: '只能查看不能编辑',
    roleName: '查询角色',
  },
];
